package io.modifier.basic.compose.hooks.android.usevibrate

import androidx.compose.runtime.Composable
import androidx.compose.ui.platform.LocalContext

@Composable
fun useVibrate(short: Long = 100, long: Long = 400): Pair<() -> Unit, () -> Unit> {
    val ctx = LocalContext.current
    return Pair(
        first = { ctx.vibrateShort(short) },
        second = { ctx.vibrateLong(long) }
    )
}
